/**
 * Copyright(c) 2013-2015 by Puhuifinance Inc.
 * All Rights Reserved
 */
package com.puhui.chome.dao;

import java.util.List;
import java.util.Map;

import com.puhui.chome.dao.base.ChomeRepository;
import com.puhui.chome.model.MonitorItem;

/**
 * @author dingxingang
 */
@ChomeRepository
public interface MonitorItemDao {
    /**
     * 添加
     * 
     * @author dingxingang
     * @param monitorItem
     */
    public void addMonitorItem(MonitorItem monitorItem);

    /**
     * 获取
     * 
     * @author dingxingang
     * @param id
     * @return
     */
    public MonitorItem getMonitorItemById(Long id);

    /**
     * 获取总记录数
     * 
     * @author dingxingang
     * @param param
     * @return
     */
    public long findMonitorItemCount(Map<String, Object> param);

    /**
     * 查询记录列表
     * 
     * @author dingxingang
     * @param param
     * @return
     */
    public List<MonitorItem> findMonitorItem(Map<String, Object> param);

    /**
     * 修改监控
     * 
     * @author dingxingang
     * @param monitorItem
     * @return
     */
    public int updateMonitorItem(MonitorItem monitorItem);

    /**
     * 获取待监控项
     * 
     * @author dingxingang
     * @param minute
     *            执行时间分
     * @return
     */
    public List<MonitorItem> findMonitorItemByExecuteMinute(int minute);

}
